<?php
   $cars=array("学号","姓名","性别");
   echo $cars[0]."</br>";
   echo $cars[1]."</br>";
   echo $cars[2]."</br>";
   
   echo "<pre>"."</br>";
   print_r($cars)."</br>";
   echo count($cars)."</br>";
   
   foreach ($cars as $value)
       {
         echo $value.'<br/>';
       };
     
       
    $len = count($cars);
    for($i=0;$i<$len;$i++)
    {
        echo $cars[$i].'<br/>';
    }
     
?>
